
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '财务核算信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'kmmc_bdef7ddc_4snk',
        name: "{{kmmc_bdef7ddc_4snk}}",
        binding: 'kmmc',
        updateOn: 'blur',
        defaultI18nValue: '科目名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    kmmc: FormControl;

    @NgFormControl({
        id: 'kmlx_c2fc1cf7_fni7',
        name: "{{kmlx_c2fc1cf7_fni7}}",
        binding: 'kmlx',
        updateOn: 'blur',
        defaultI18nValue: '科目类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    kmlx: FormControl;

    @NgFormControl({
        id: 'bz_1d5e586c_4jfu',
        name: "{{bz_1d5e586c_4jfu}}",
        binding: 'bz',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    bz: FormControl;

}